var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var onlineConf = require('../../app/config/onlineConf');
var dataApi = require('../../app/libs/dataApi');

suite('onlineConf', function () {
    suite('getOnlineConf', function () {
        test('获取配置', function () {
            onlineConf.getOnlineConf(300).id.should.equal(300);
        });
    });

    suite('getNextOnlineConf', function () {
        test('获取配置', function () {
            onlineConf.getNextOnlineConf(300).id.should.equal(600);
        });
    });

    suite('getOnlineMaxTime', function () {
        test('获取配置', function () {
            onlineConf.getOnlineMaxTime().should.equal(3600);
        });
    });
});
